package com.sizu.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.sizu.common.dto.UserDto;
import com.sizu.entity.TUser;
import com.sizu.mapper.TUserMapper;
import com.sizu.service.ITUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.Action;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-22
 */
@Service
public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements ITUserService {

    @Autowired
    private TUserMapper tUserMapper;

    @Override
    public List<TUser> getUserAndRoleList(UserDto userDto) {
        return tUserMapper.getUserAndRoleList(userDto);
    }

    @Override
    public TUser findByUserName(UserDto userDto) {
        return tUserMapper.findByUserName(userDto);
    }
}
